﻿using Prism.DryIoc;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Shell.Views;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace Prism.Shell
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : PrismApplication
    {
        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<HeaderView>();//注册View视图
        }

        protected override Window CreateShell()
        {
            return new MainWindow();
        }

        protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog)
        {
            base.ConfigureModuleCatalog(moduleCatalog);

            moduleCatalog.AddModule<Prism.AdapterModule.AdapterModule>();
            moduleCatalog.AddModule<Prism.DialogModule.DialogModule>();
            moduleCatalog.AddModule<Prism.EventModule.EventModule>();
            moduleCatalog.AddModule<Prism.NavigationModule.NavigationModule>();
        }
    }
}
